scl = 10
c = scl*0
d = scl/2
e = scl
f = int(scl*1.5)
palochka = scl*4
list = ["c","c","c","c"]
for element in list:
	if element == "c":
		nota = c
		if list[0] == "f":
			palochka = palochka + int(scl*1.5)
		elif list[3] == "f":
			palochka = palochka + scl
	elif element == "d":
		if list[0] == "f":
			palochka = palochka + int(scl*1.5)
		elif list[3] == "f":
			palochka = palochka + int(scl*1.5)
	elif element == "e":
		nota = e
		if list[0] == "f":
			palochka = palochka + scl/2
		elif list[3] == "f" and list[0] == 'c':
			palochka = palochka+int(scl*2)
		else:
			palochka = palochka
	elif element == "f":
		nota = f
		if list[3] == "f" and list[0] == 'c':
			palochka = palochka+int(scl*2.5)
		elif list[3] == "f":
			palochka = palochka - scl/2
	print palochka
	palochka = scl*4
